'use client';
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Left from "./components/leftbody";
import RightMask from "./components/right-mask-body";
import ChatPage from "./components/ChatPage";
import Session from "./components/session";
import "./main.scss";
export default function Home() {

  return (
    <div className="mainbody">
      <Router>
        <Left />
        <Routes>
          <Route path="/" element={<RightMask />} />
          <Route path="/Chat" element={<ChatPage/>} />
          <Route path="/session" element={<Session/>}/>
          {/* 添加默认路由 */}
        </Routes>
      </Router>
    </div>
  );
}